package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.Dto.SetmealDto;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Setmeal;

import java.util.List;

/**
 * @author huhanzhao
 * @create 2022-11-05-21:00
 */
public interface SetmealService extends IService<Setmeal> {
    //新增套餐并保存套餐菜品关系
    public void saveWithDish(SetmealDto setmealDto);
    public Page<SetmealDto> page(int page,int pageSize,String name);
    //起售停售
    public boolean update(int status, List<Long> ids);
    //删除
    public boolean deleteSetmealWithSetmealDish(List<Long> ids);
    //根据id查询套餐信息
    public SetmealDto getSetmealDto(Long id);
    public boolean updateSetmealWithSetmealDish(SetmealDto setmealDto);
}
